#ifndef __PAGE_H_
#define __PAGE_H_

#include <Arduino.h>
#include <SPI.h>
#include <TFT_eSPI.h>

class Menu_UI
{
public:
    Menu_UI(uint8_t _font, String _topic, String* _select, uint8_t _len, uint16_t _fc, uint16_t _bgc);
    void showPage();

    String topic; //标题
    uint8_t font; //字体
    String* select; //选项
    uint8_t len; //选项个数
    uint16_t bgc; //背景色
    uint16_t fc; //前景色
};

class Page_UI
{
public:
    Page_UI(uint8_t _font, String _topic, String imgUrl, uint16_t _fc, uint16_t _bgc);
    void showPage();
    
    String topic; //标题
    uint8_t font; //字体
    String imgUrl; //选项
    uint16_t bgc; //背景色
    uint16_t fc; //字体色
};

void gotoPage();

#endif
